//
//  MJMyInfoTableViewCell.m
//  MJ
//
//  Created by qiaoBu on 2017/12/7.
//  Copyright © 2017年 lina. All rights reserved.
//

#import "MJMyInfoTableViewCell.h"

@interface MJMyInfoTableViewCell ()


@end

@implementation MJMyInfoTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self commomInit];
    }
    return self;
}

- (void)commomInit{
    
    _markLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_markLabel];
    [_markLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.mas_equalTo(self.contentView.mas_left).offset(20);
        make.centerX.centerY.mas_equalTo(self.contentView);
    }];
    _markLabel.textColor = RGBColor(102, 102, 102);
    _markLabel.font = [UIFont systemFontOfSize:16];
    _markLabel.textAlignment = NSTextAlignmentLeft;
    
    UIImageView *arrowImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:arrowImageView];
    [arrowImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.right.mas_equalTo(self.contentView.mas_right).offset(-20);
        make.centerY.mas_equalTo(self.contentView);
        make.size.mas_equalTo(CGSizeMake(10.5, 19));
    }];
    arrowImageView.image = [UIImage imageNamed:@"arrow_right"];
    
    UIView *bottomLine = [[UIView alloc] init];
    [self.contentView addSubview:bottomLine];
    [bottomLine mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.right.top.mas_equalTo(self.contentView);
        make.height.mas_equalTo(0.5);
    }];
    bottomLine.backgroundColor = RGBColor(229,229,229);
    
}

@end
